<?php /* Smarty version 2.6.18, created on 2010-03-15 02:28:39
         compiled from dataOM_table.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'dataOM_table.tpl', 15, false),)), $this); ?>
<div id="pageNavPosition" style="color:#84b5cc"></div>
<table width="100%" id="results">
	<tr bgcolor="#cccccc">
		<td width="5%"><label></label></td>
		<td width="5%" align="center"><label><b>Delete</b></label></td>
		<td width="5%"><label><b>MAC</b></label></td>
		<td width="6%"><label><b>Unsuitable</b></label></td>
		<td><label><b>Name</b></label></td>
		<!-- td><label><b>Scientific Name</b></label></td-->
		<td><label><b>Organization Group</b></label></td>
		<td><label><b>Date Created</b></label></td>
		<td><label><b>Date Updated</b></label></td>
	</tr>
	<?php $_from = $this->_tpl_vars['results']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['result']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => "blue,notify"), $this);?>
">
			<td align="center">
				<input type="button" value="Edit" onclick="edit_item(<?php echo $this->_tpl_vars['result']['id']; ?>
)">
			</td>
			<td align="center">
				<input type="checkbox" name="del_<?php echo $this->_tpl_vars['result']['id']; ?>
" value="1">
			</td>
			<td align="center">
				<input type="checkbox" name="mac_<?php echo $this->_tpl_vars['result']['id']; ?>
" id="mac_<?php echo $this->_tpl_vars['result']['id']; ?>
"  value="1"
					<?php if ($this->_tpl_vars['result']['mac_certified']): ?>checked<?php endif; ?>
				>
			</td>
			<td align="center"><input type="checkbox" name="uns_<?php echo $this->_tpl_vars['result']['id']; ?>
" id="uns_<?php echo $this->_tpl_vars['result']['id']; ?>
" value="1"
					<?php if ($this->_tpl_vars['result']['unsuitable_species']): ?>checked<?php endif; ?>
				>
			</td>
			<td align="center">
				<div>
				<?php if ($this->_tpl_vars['result']['link'] != null): ?>
				<img  onclick="PopEx(this, null, null, null, 300, 50, 'PopBoxImageLarge');" 
					  pbCaption="<i><?php echo $this->_tpl_vars['result']['scientific_name']; ?>
</i>, <?php echo $this->_tpl_vars['result']['name']; ?>
" 
					  id="trade<?php echo $this->_tpl_vars['key']; ?>
" width="98" 
					  src="<?php echo $this->_tpl_vars['result']['link']; ?>
" 
					  pbsrc="<?php echo $this->_tpl_vars['result']['link']; ?>
" 
					  class="PopBoxImageSmall" title="Click to magnify/shrink">
				<br><?php endif; ?>
				<label><?php echo $this->_tpl_vars['result']['name']; ?>
</label><br><br>
				<label><i><?php echo $this->_tpl_vars['result']['scientific_name']; ?>
</i></label>
				</div>
			</td>
			<!--td><label><?php echo $this->_tpl_vars['result']['scientific_name']; ?>
</label></td-->
			<td><label><?php echo $this->_tpl_vars['result']['organism_group']; ?>
</label></td>
			<td><label><?php echo $this->_tpl_vars['result']['date_created']; ?>
</label></td>
			<td><label><?php echo $this->_tpl_vars['result']['date_updated']; ?>
</label></td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
</table>
<script type="text/javascript"><!--
        var pager = new Pager('results', 10); 
        pager.init(); 
        pager.showPageNav('pager', 'pageNavPosition'); 
        pager.showPage(1);
</script>

	
	
	